﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CheckClicker;

namespace CheckClicker
{
    public partial class frmDisplay : Form
    {
        CommunicationManager comm = new CommunicationManager();
        public frmDisplay()
        {
            InitializeComponent();
        }

        public frmDisplay(string x1, string x2, string x3, string x4, string x5)
        {
            InitializeComponent();
            int a = Convert.ToInt32(x1);
            int b = Convert.ToInt32(x2);
            int c = Convert.ToInt32(x3);
            int d = Convert.ToInt32(x4);
            int e = Convert.ToInt32(x5);
            if (a > 0) lbelA.Text = x1 + " People";
            if (b > 0) lbelB.Text = x2 + " People";
            if (c > 0) lbelC.Text = x3 + " People";
            if (d > 0) lbelD.Text = x4 + " People";
            if (e > 0) lbelE.Text = x5 + " People";     
        }

        private void frmDisplay_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'databaseDataSet2.Chart' table. You can move, or remove it, as needed.
            this.chartTableAdapter.Fill(this.databaseDataSet2.Chart);
            // TODO: This line of code loads data into the 'databaseDataSet1.Chart' table. You can move, or remove it, as needed.
            //this.chartTableAdapter1.Fill(this.databaseDataSet1.Chart);
            // TODO: This line of code loads data into the 'databaseDataSet.Chart' table. You can move, or remove it, as needed.
            
            //this.chartTableAdapter.Fill(this.databaseDataSet.Chart);
            chart1.ChartAreas[0].AxisY.Maximum = 100;

        }

        
      
    }
}
